package org.keeners.imageviewer.util {
    
    import flash.display.*;
    
    public class Shapes {
        
        
        public function alpha_rectangle(w:Number,h:Number):Sprite{
    		var rectangle:Sprite = new Sprite();
    		rectangle.graphics.beginFill(0x000000);
    		rectangle.graphics.drawRect(0,0,w,h);
    		rectangle.graphics.endFill();
    		rectangle.alpha = 0.0;
    		return rectangle;			
    	}
    	
    	public function highlight_rectangle(w:Number,h:Number,c:uint=0xff0000):Sprite{
    		var rectangle:Sprite = new Sprite();
    		rectangle.graphics.lineStyle(3, 0x000000, .6);
    		rectangle.graphics.beginFill(c, .3);
    		//rectangle.graphics.drawRect(0,0,w,h);
    		rectangle.graphics.drawRoundRect(0,0,w,h,10,10);
    		rectangle.graphics.endFill();
    		return rectangle;			
    	}
    	
    }    
           
        
    
}
